package cn.edu.lcu.cs.designpattern.flyweight.poker.deck;

import cn.edu.lcu.cs.designpattern.flyweight.poker.Rank;
import cn.edu.lcu.cs.designpattern.flyweight.poker.Suit;
import lombok.Getter;
import lombok.ToString;

import java.util.*;

/**
 * 扑克牌
 *
 * @author ling
 * @date 2022/9/11 19:33
 */
@Getter
@ToString
public class Card {
    /**
     * 花色
     */
    private Suit suit;
    /**
     * 点数
     */
    private Rank rank;

    /**
     * @param suit
     * @param rank
     */
    public Card(Suit suit, Rank rank) {
        this.suit = suit;
        this.rank = rank;
    }

}
